/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class CustomerTest {
    private static final String INPUT_FILE_NAME = "Input.txt";
    private static final String OUTPUT_FILE_NAME_TEXT = "Customer.txt";
    private static final String OUTPUT_FILE_NAME_BIN = "Customer.bin";
    private static final String OUTPUT_FILE_NAME_OBJECT_ENTRYSET = "CustomerEntrySet.dat";
    private static final String OUTPUT_FILE_NAME_OBJECT_ITERATOR = "CustomerIterator.dat";
    
    public CustomerTest() {
        
    }
    
    public static void main(String[] args) {
        CustomerList obj = new CustomerList();
        for (int i = 0; i < 3; i++) {
            obj.addList();
        }
        obj.displayList();
        obj.saveToBinFile(OUTPUT_FILE_NAME_BIN);
        obj.saveToTextFile(OUTPUT_FILE_NAME_TEXT);
        obj.saveToFileObjectEntrySet(OUTPUT_FILE_NAME_OBJECT_ENTRYSET);
        obj.saveToFileObjectIterator(OUTPUT_FILE_NAME_OBJECT_ITERATOR);
        obj.readFileTextToList(INPUT_FILE_NAME);
        obj.displayList();
    }
}
